const {
  defineConfig} = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './',
  transpileDependencies: true,
  lintOnSave:false,
  configureWebpack: {
    devServer: {
      proxy: {
        "/": {//捕获API的标志，如果API中有这个字符串，那么就开始匹配代理，
          // target:process.env.VUE_APP_BASE_API,
          // target: "http://192.168.10.23:8092", //照良
          target: "https://www.signzg.com", //照良
          // target: "http://192.168.10.44:8089", //现伟
          // target: "http://xavcdw.natappfree.cc", //线上
          changeOrigin: true,// 这个参数可以让target参数是域名
          ws: false,//是否启用websockets，用不到可设为false
          secure: false,
          pathRewrite: {//对路径匹配到的字符串重写
            "^/": "",
          },
        },
      },
      
    },
    externals: {
      AMap: "AMap",
    },
  },
});
